package com.yitao.client.dto.product;

import lombok.Data;
import java.util.Date;
import java.util.List;
import com.skipper.base.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;


/**
 *
 *  @author skipper
 *  @date 2019-02-26
 *  @desc  如该dto不需要id继承 BaseDto 即可 如需id 则根据情况选择  BaseDtoWithId  或 BaseDtoWithStringId
 *  @see
 */

public class BaseProductCategoryDto extends BaseDto {


    /**
     * id
     */
    @ApiModelProperty("id")
    private Long id;


    /**
     * 分类类型 1：基础分类；2：运营分类
     */
    @ApiModelProperty("分类类型 1：基础分类；2：运营分类")
    private Integer categoryType;


    /**
     * 分类级别
     */
    @ApiModelProperty("分类级别")
    private Integer categoryLevel;


    /**
     * 分类code
     */
    @ApiModelProperty("分类code")
    private String categoryCode;


    /**
     * 商品分类名称
     */
    @ApiModelProperty("商品分类名称")
    private String categoryName;


    /**
     * 父分类id
     */
    @ApiModelProperty("父分类id")
    private Long parentId;


    /**
     * 分类排序值 默认为0
     */
    @ApiModelProperty("分类排序值 默认为0")
    private Integer categorySort;


    /**
     * 分类主图地址
     */
    @ApiModelProperty("分类主图地址")
    private String categoryImageUrl;


    /**
     * 是否被删除 0 否 1 是
     */
    @ApiModelProperty("是否被删除 0 否 1 是")
    private Integer isDelete;


    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    private Long createBy;


    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;


    /**
     * 最后更新人
     */
    @ApiModelProperty("最后更新人")
    private Long lastUpdateBy;


    /**
     * 最后修改时间
     */
    @ApiModelProperty("最后修改时间")
    private Date lastUpdateTime;
    private List<BaseProductCategoryDto> children;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(Integer categoryType) {
        this.categoryType = categoryType;
    }

    public Integer getCategoryLevel() {
        return categoryLevel;
    }

    public void setCategoryLevel(Integer categoryLevel) {
        this.categoryLevel = categoryLevel;
    }

    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getCategorySort() {
        return categorySort;
    }

    public void setCategorySort(Integer categorySort) {
        this.categorySort = categorySort;
    }

    public String getCategoryImageUrl() {
        return categoryImageUrl;
    }

    public void setCategoryImageUrl(String categoryImageUrl) {
        this.categoryImageUrl = categoryImageUrl;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getLastUpdateBy() {
        return lastUpdateBy;
    }

    public void setLastUpdateBy(Long lastUpdateBy) {
        this.lastUpdateBy = lastUpdateBy;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public List<BaseProductCategoryDto> getChildren() {
        return children;
    }

    public void setChildren(List<BaseProductCategoryDto> children) {
        this.children = children;
    }
}